/**
 * @file 1config-function-reload.cpp
 * @author Kun (kun_g@msn.com)
 * @brief This is a sample program to demonstrate how to reload a function in
 * C++
 * @version 0.1
 * @date 2024-05-14
 *
 * @copyright Copyright (c) 2024
 *
 */
#include <iostream>

using namespace std;

// reference to the function to be reloaded
int add(int &a, int &b) { return a + b; }

int main() {
  int a = 10, b = 20;
  cout << "Before adding: " << a << " " << b << endl;
  int result = add(a, b);
  cout << "After adding: " << result << endl;
  return 0;
}